package cn.slahser.model;

import java.io.Serializable;
import java.util.Hashtable;

public class Message implements Serializable {

	// 实现实例化接口才可以在流里活动
	private static final long serialVersionUID = 7019244292701443015L;
	// 通讯的类型，用于进行判断
	public String type = "";

	public static final String LOGIN = "LOGIN";
	public static final String LOGOUT = "LOGOUT";
	public static final String REG = "REG";
	public static final String SEND_TEXT = "SEND_TEXT";
	public static final String SEND_IMAGE = "SEND_IMAGE";
	public static final String SEND_AMR = "SEND_AMR";
	public static final String REPLY_TEXT = "REPLY_TEXT";
	public static final String REPLY_IMAGE = "REPLY_IMAGE";
	public static final String REPLY_AMR = "REPLY_AMR";
	public static final String FIND_USER = "FIND_USER";
	public static final String DL_DATA = "DL_DATA";

	// 发送信息
	public Hashtable<String, Object> value = null;
	// 返回信息
	public Hashtable<String, Object> returnValue = null;

	public Hashtable<String, Object> getValue() {
		return value;
	}

	public void setValue(Hashtable<String, Object> value) {
		this.value = value;
	}

	public Hashtable<String, Object> getReturnValue() {
		return returnValue;
	}

	public void setReturnValue(Hashtable<String, Object> returnValue) {
		this.returnValue = returnValue;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
